package com.example.makerspace.controller.largeScreen;

import com.example.makerspace.dto.Result;
import com.example.makerspace.service.ApplicationService;
import com.example.makerspace.vo.BasicDataVO;
import com.example.makerspace.vo.CoreDataVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
@Controller
@ResponseBody
@RequestMapping("/api/coolScreen")
@Api(tags = "新-大屏模块")
public class CoolScreenController {
    @Resource
    private ApplicationService applicationService;

    @ApiOperation(value="左上",notes ="核心数据总览接口说明")
    @GetMapping("/coreData")
    public CoreDataVO coreData() {
        return  applicationService.coreData();
    }

    @ApiOperation(value="左中",notes ="数据总览接口说明")
    @GetMapping("/dataOverview")
    public CoreDataVO dataOverview() {
        return  applicationService.dataOverview();
    }
    @ApiOperation(value="左下",notes ="实名待审核说明")
    @GetMapping("/realNamePendingReview")
    public CoreDataVO realNamePendingReview() {
        return  applicationService.realNamePendingReview();
    }

    @ApiOperation(value="中上",notes ="上架产品发布地图说明")
    @GetMapping("/productMap")
    public CoreDataVO productMap() {
        return  applicationService.productMap();
    }

    @ApiOperation(value="中下",notes ="产品上架展示")
    @GetMapping("/showProduct")
    public CoreDataVO showProduct() {
        return  applicationService.showProduct();
    }

    @ApiOperation(value="右上",notes ="用户量变化")
    @GetMapping("/userChanges")
    public CoreDataVO userChanges() {
        return  applicationService.userChanges();
    }
    @ApiOperation(value="右中",notes ="产品前8说明")
    @GetMapping("/productSort")
    public CoreDataVO productSort() {
        return  applicationService.productSort();
    }

    @ApiOperation(value="右下",notes ="产品待审核")
    @GetMapping("/productToReviewed")
    public CoreDataVO productToReviewed() {
        return  applicationService.productToReviewed();
    }



    @ApiOperation(value="用户签到统计接口",notes ="用户签到统计接口说明")
    @GetMapping("/userSign")
    public BasicDataVO userSign() {
        return  applicationService.userSign();
    }

    @ApiOperation(value="用户积分排名接口",notes ="用户签到统计接口说明")
    @GetMapping("/pointSort")
    public BasicDataVO pointSort() {
        return  applicationService.pointSort();
    }
}
